داستان آبیدیک

event handler


فارسی

1 کامپیوتر و شبکه:: کنترل‌کننده رویداد

How does C# handle the callback functions or event handler? Let's see how you can define an event and notify other classes that have event handlers. In the above example, the Number class creates an instance of PrintHelper and subscribes to the beforePrintEvent with the "+=" operator and gives the name of the function which will handle the event (it will be get called when publish fires an event). printHelper_beforePrintEvent is the event handler that has the same signature as the BeforePrint delegate in the PrintHelper class. Now, the subscriber class should have an event handler that has a string parameter. Function that handles the event is called event handler.

واژگان شبکه مترجمین ایران


معنی‌های پیشنهادی کاربران

نام و نام خانوادگی
شماره تلفن همراه
متن معنی یا پیشنهاد شما
Captcha Code